# It is recommended to test the script on a local machine for its purpose and effects. # ManageEngine Desktop Central will not be responsible for any # damage/loss to the data/setup based on the behavior of the script. # Pre-requisites - There should be a file called as "dcblockexe.txt" which contains a list of exes to block # Description - This is script to restrict applications from running, the values to be put comma separated in the txt file can be localizedName or bundleIdentifier or absoluteString of the executableURL or processName or Process ID # Note - Kindly download the file from the description and add it as a attachment to the custom script #extract dcblockexe zip unzip -u dcblockexe.zip chmod 755 dcblockexe chown root:staff dcblockexe ./dcblockexe >/dev/null 2>&1 & disown ret=$? if [ $ret == "0" ]; then echo "Sucessfully executed code" else echo "Error in executing code" fi exit 0